import Vue from 'vue'
import Router from 'vue-router'
import regist from '@/components/regist'
import login from '@/components/login'
import weibo_callback from "@/components/weibo_callback"
import simuser from "@/components/simuser"
import banguser from "@/components/banguser"
import send_eamil from "@/components/send_eamil"
import reset_pwd from "@/components/reset_pwd"
import zhoukao from "@/components/zhoukao"     
import fuwenbentest from "@/components/fuwenbentest"
import index from "@/components/index"
import da from "@/components/da"
import detail2 from "@/components/detail2"  
import qujing from "@/components/qujing"
import zhanshi from "@/components/zhanshi"
import cart2 from "@/components/cart2";
import fenye from "@/components/fenye";
import order from "@/components/order";
import orders from "@/components/orders";
import addbooks from "@/components/addbooks";
import zhenshi from "@/components/zhenshi";
import addgoods from "@/components/addgoods";
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: "/regist",
      name: "regist",
      component: regist,
    },
    {
      path: "/login",
      name: "login",
      component: login,
    },
    {
      path: "/weibo_callback",
      name: "weibo_callback",
      component: weibo_callback,
    },
    {
      path: "/simuser",
      name: "simuser",
      component: simuser,
    },
    {
      path: "/banguser",
      name: "banguser",
      component: banguser,
    },
    {
      path: "/send_eamil",
      name: "send_eamil",
      component: send_eamil,
    },
    {
      path: "/reset_pwd",
      name: "reset_pwd",
      component: reset_pwd,
    },
    {
      path: "/zhoukao",
      name: "zhoukao",
      component: zhoukao,
    },
    {
      path: "/fuwenbentest",
      name: "fuwenbentest",
      component: fuwenbentest,
    },
    {
      path: "/index",
      name: "index",
      component: index,
    },
    {
      path: "/da",
      name: "da",
      component: da,
    },
    {
      path: "/detail2/:id",
      name: "detail2",
      component: detail2,
    },
    {
      path: "/qujing",
      name: "qujing",
      component: qujing,
    },
    {
      path: "/zhanshi",
      name: "zhanshi",
      component: zhanshi,
    },
    {
      path: "/cart2",
      name: "cart2",
      component: cart2,
    },
    {
      path: "/fenye",
      name: "fenye",
      component: fenye,
    },
    {
      path: "/order",
      name: "order",
      component: order,
    },
    {
      path: "/orders",
      name: "orders",
      component: orders,
    },
    {
      path: "/addbooks",
      name: "addbooks",
      component: addbooks,
    },
    {
      path: "/zhenshi",
      name: "zhenshi",
      component: zhenshi,
    },
    {
      path: "/addgoods",
      name: "addgoods",
      component: addgoods,
    },
  ],
});
